import login from "./route/login.js";
import prescription from "./route/prescription";
import incompleteCommunication from "./route/incompleteCommunication";
import depending from "./route/depending";
export default [
  {
    path: "/",
    // redirect: "/home/depending/list"
    redirect: "/login"
  },
  login,
  {
    path: "/home",
    component: function (resolve) {
      require(["./views/home.vue"], resolve);
    },
    children: [
      depending,
      prescription
    ]
  },
  {
    // 404
    path: "/404",
    component: function (resolve) {
      require(["./views/404.vue"], resolve);
    }
  },
  {
    path: "*",
    redirect: "/404"
  }
];
